package com.gzyct.m.api.common.partner;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

public class PartnerBaseResp {

	public static final String RESULT_SUCCESS = "0";

	private String result_code;
	private String err_msg = "";

	public String getResult_code() {
		return result_code;
	}

	public void setResult_code(String result_code) {
		this.result_code = result_code;
	}

	public String getErr_msg() {
		return err_msg;
	}

	public void setErr_msg(String err_msg) {
		this.err_msg = err_msg;
	}

	public void success() {
		this.setResult_code(RESULT_SUCCESS);
	}

	public boolean checkSuccess() {
		return RESULT_SUCCESS.equals(result_code);
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}
